﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace CKS2320.Domain.DBEntity
{
    [Table("equipmentfailurehistory")]
    public partial class Equipmentfailurehistory
    {
        [Key]
        public Guid Id { get; set; }
        public Guid FailureId { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? StartTime { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? EndTime { get; set; }
        [StringLength(20)]
        public string? TotalTime { get; set; }
        public bool? FaultType { get; set; }
        [StringLength(100)]
        public string? Content { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? CreatedTime { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? ModifiedTime { get; set; }
        [NotMapped]
        public string? EN { get; set; }
        [NotMapped]
        public string? ES { get; set; }
    }
}
